<!DOCTYPE html>
<title>Test "timeupdate" events are posted while playing but not while paused.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<video></video>
<script>
async_test(function(t) {
    var video = document.querySelector("video");
    video.src = "content/test.ogv";

    video.onplaying = t.step_func(function() {
        video.ontimeupdate = t.step_func(function() {
            video.pause();
        });
    });

    video.onpause = t.step_func(function() {
        video.ontimeupdate = t.unreached_func();
        setTimeout(t.step_func_done(), 250);
    });

    video.play();
});
</script>